import Loading from "./Loading.vue"
import Vue from "vue";
// import loading from ".";

const LoadingConstructor = Vue.extend(Loading);

var loadings = false;
const serve = () => {
    // console.log(666);
    if (!loadings) {
        var loadingInstance = new LoadingConstructor();
        loadings = true
    }

    loadingInstance.$mount(document.createElement("div"));
    document.body.appendChild(loadingInstance.$el);

    Vue.nextTick(() => {
        loadingInstance.visible = true;
    });
    return loadingInstance;
}
export default serve





















